package com.hongyuan.sellfitness.ui.message.view_mode;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.hongyuan.mvvmhabitx.binding.command.BindingAction;
import com.hongyuan.mvvmhabitx.binding.command.BindingCommand;
import com.hongyuan.sellfitness.base.Constants;
import com.hongyuan.sellfitness.base.ItemViewModel;
import com.hongyuan.sellfitness.ui.message.beans.MessageLetterBean;
import com.hongyuan.sellfitness.ui.message.beans.MsgDetailBean;


public class MsgDetailItemViewModel extends ItemViewModel<MsgDetailViewModel> {

    public ObservableField<MsgDetailBean.ListBean> entity = new ObservableField<>();

    public MsgDetailItemViewModel(@NonNull MsgDetailViewModel viewModel, MsgDetailBean.ListBean bean) {
        super(viewModel);
        entity.set(bean);
    }

    //条目的点击事件
    public BindingCommand itemClick = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            viewModel.itemClick(MsgDetailItemViewModel.this);


        }
    });
}
